<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device_type" class="form-control" type="text" value="{$row.device_type|htmlentities}" readonly>
            <input style="display: none" name="row[device_type]" value="{$row.device_type|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备编号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device_sn" class="form-control" name="row[device_sn]" type="text" value="{$row.device_sn|htmlentities}" readonly>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('归属店铺')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_id" data-rule="required" data-source="shop/shop/index" class="form-control selectpage" name="row[shop_id]" type="text" value="{$row.shop_id|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <div id="room">
            <label class="control-label col-xs-12 col-sm-2">{:__('包厢')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-room_id" data-search-field="name" data-source="shop/shoproom/index" class="form-control selectpage" name="row[room_id]" type="text" value="{$row.room_id|htmlentities}">
            </div>
        </div>
        <div style="display: none" id="table">
            <label class="control-label col-xs-12 col-sm-2">{:__('台桌')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-table_id" data-search-field="name" data-source="shop/shoptable/index" class="form-control selectpage" name="row[table_id]" type="text" value="{$row.room_id|htmlentities}">
            </div>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
